Skip to content

Fix broken AUTOGENERATE_FILE_NOT_EXISTS_OR_CHANGED proxy setting.#12491

Open
demiankatz wants to merge 1 commit into
doctrine:3.6.xfrom
demiankatz:fix-issue-11418
Open

Fix broken AUTOGENERATE_FILE_NOT_EXISTS_OR_CHANGED proxy setting.#12491
demiankatz wants to merge 1 commit into
doctrine:3.6.xfrom
demiankatz:fix-issue-11418

Conversation

@demiankatz
Copy link
Copy Markdown

@demiankatz demiankatz commented May 30, 2026

This PR fixes the problem described by issue #11418 by replacing a buggy switch statement with a (hopefully) clearer and less problematic match statement. Apart from fixing the bug of the non-functioning AUTOGENERATE_FILE_NOT_EXISTS_OR_CHANGED setting, this should cause no changes to behavior.

I apologize for not including a test case with this fix; because of the nature of the functionality (which depends on file modification times and results in disk writes), it is impractical to write a unit test without refactoring things to allow mocking. I thought keeping the test focused and simple was a greater priority, but I am open to discussing more complex changes if that would be desirable.

I am a first-time contributor, so please feel free to make suggestions, and please accept my apologies if I've overlooked or misunderstood anything from the contribution guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant